Microsoft DirectX 8.1 (C++)

IMediaSample2 Interface

Sets and retrieves properties on media samples. This interface inherits the IMediaSample interface. Whereas the IMediaSample interface requires separate method calls for each sample property, the IMediaSample2 interface has methods for setting and retrieving multiple properties at once.

Media samples are not guaranteed to support IMediaSample2. However, if an allocator does create samples that support IMediaSample2, all of the samples it generates must support the interface.

In addition to the methods inherited from IUnknown and IMediaSample, the IMediaSample2 interface exposes the following methods.

Method Description
GetProperties Retrieves the properties of a media sample.
SetProperties Sets the properties of a media sample.